﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace GN.Pay.TradeChannel.YJPay.Response
{
    /// <summary>
    /// 响应实体
    /// </summary>
    [Serializable]
    class AResponseEntity
    {
        /// <summary>
        /// 成功状态
        /// </summary>
        public bool success { get; set; }

        /// <summary>
        /// 订单号
        /// </summary>
        public string orderNo { get; set; }

        /// <summary>
        /// 协议类型 HTTP-FORM-JOSN(默认)
        /// </summary>
        public string protocol { get; set; }

        /// <summary>
        /// 服务
        /// </summary>
        public string service { get; set; }

        /// <summary>
        /// 版本
        /// </summary>
        public string version { get; set; }

        /// <summary>
        /// 商户ID
        /// </summary>
        public string partnerId { get; set; }

        /// <summary>
        /// 签名方式 RSA、MD5个值可选，必须大写。
        /// </summary>
        public string signType { get; set; }

        /// <summary>
        /// 签名
        /// </summary>
        public string sign { get; set; }

        /// <summary>
        /// 交易订单号(交易类业务的交易订单号，交易类业务如未特殊说明，都根据该订单号支持幂等。)
        /// </summary>
        public string merchOrderNo { get; set; }

        /// <summary>
        /// 上下文
        /// </summary>
        public string context { get; set; }

        /// <summary>
        /// 响应代码
        /// <para>EXECUTE_SUCCESS 交易成功</para>
        /// <para>EXECUTE_PROCESSING 交易处理中</para>
        /// <para>INTERNAL_ERROR 系统内部错误</para>
        /// <para>SERVICE_NOT_FOUND_ERROR 服务不存在</para>
        /// <para>PARAMETER_ERROR 参数错误</para>
        /// <para>PARAM_FORMAT_ERROR 参数格式错误</para>
        /// <para>UNAUTHENTICATED 认证(签名)错误</para>
        /// <para>UNAUTHORIZED 未授权的服务</para>
        /// <para>REQUEST_NO_NOT_UNIQUE 商户请求号不唯一</para>
        /// <para>FIELD_NOT_UNIQUE 对象字段重复</para>
        /// <para>REDIRECT_URL_NOT_EXIST 重定向服务需设置redir</para>
        /// <para>PARTNER_NOT_REGISTER 合作伙伴没有注册</para>
        /// <para>PARTNER_NOT_PRODUCT 商户没有配置产品</para>
        /// <para>UNSUPPORTED_SECHEME 不支持的请求协议</para>
        /// </summary>
        public string resultCode { get; set; }

        /// <summary>
        /// 结果消息
        /// </summary>
        public string resultMessage { get; set; }


    }
}
